Folders

Query the folders contained in a user's Google Drive.

Select

It is also possible to get all the folders from a Team Drive. You must set the connection property TeamDriveSupport to 'true', in order to query from a specific Team Drive.

SELECT * FROM Folders WHERE TeamDriveId='0ACkq0ZiV0yJCUk9PVA'
NOTE: specifying a large set of fields may result in lower performance, so we recommend that you restrict your query to only the columns you need for best results.

Columns

Name TypeDescription
Id [KEY] StringThe ID of the file.
Name StringThe name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of Team Drives, My Drive root folder, and Application Data folder the name is constant.
TeamDriveId StringThe Id of the teamDrive.
Description StringA short description of the file or folder.
CreatedTime DatetimeThe creation date of the file or folder.
ModifiedTime DatetimeThe last modified date of the file or folder.
Size LongThe size of the file in bytes.
OwnerName StringThe name of the resource's owner.
OwnerEmail StringThe email of the resource's owner.
Starred BooleanThis field sets whether or not the resource is starred.
Trashed BooleanThis field sets whether or not the resource has been moved to the trash.
Viewed BooleanThis field sets whether or not the resource has been viewed by the current user.
ParentIds StringA comma-separated list of parent folder Ids.
ChildIds StringA semicolon-separated list of child resource Ids.
ChildLinks StringA semicolon-separated list of child resource links.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.

Name Type Description
Query StringThis field accepts a valid Google Drive SDK query, which overrides conditionals in the WHERE clause.